package org.jeecg.modules.xl.shopcart.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.xl.mpapi.vo.ShopCartVo;
import org.jeecg.modules.xl.shengfutong.response.PreUnifieAppletdorderPayInfo;
import org.jeecg.modules.xl.shopcart.entity.XlShopcart;

import java.util.List;

/**
 * @author deco
 * @create 2025-03-03
 */
public interface IXlShopcartService  extends IService<XlShopcart> {
    Result addShopcart(XlShopcart shopcart);

    Result removeShopcartItem(XlShopcart shopcart);

    Result<JSONObject> clearCart(String storeCode);

    List<ShopCartVo> getCart(String storeCode);

    Result<Object> submitOrder(String storeCode, String orderNote);

    PreUnifieAppletdorderPayInfo preUnifieAppletdorder(String orderCode) throws Exception;
}
